<%-- 
    Document   : logout
    Created on : May 23, 2014, 11:16:30 AM
    Author     : tuanna
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <%
        Cookie co[]=request.getCookies();
            for(Cookie cookie : co){
                if(cookie.getName().substring(0, 7).equals("product")){
                    cookie.setMaxAge(0);
                    cookie.setValue(null);
                    response.addCookie(cookie);
                }
            }
            session=request.getSession();
            session.invalidate();
            response.sendRedirect("login.jsp");
    %>
    <body>
        
    </body>
</html>
